/* ===========================================================
			Resonance
	NPC Name: 		Lirin
	Map(s): 		Snow Island: Rien (140000000)
	Description: 	Quest - Basic Training 3
=============================================================
Version 1.0 - Script Done.(11/6/2010)
=============================================================
*/

var status = -1;

function start(mode, type, selection) {
    status++;
	if (mode != 1) {
	    if(type == 1 && mode == 0)
		    status -= 2;
		else{
			qm.PlayerToNpc("#b(I pressed Reject out of fear, but... I can't run away like this. I better calm down and talk to her again.)#k");
			qm.dispose();
			return;
		}
	}
	if (status == 0)
		qm.sendNext("Well, you look like you're warmed up a bit. This is when the training should really take off, and you know it. Let's continue our Basic Training.");
	if (status == 1)
		qm.sendNextPrev("This time, let's head over to #b#m140020200##k and defeat some #r#o0100133#s#k. Somewhere around... #r20#k? That should really help you improve your stamina. Now go ahead and... wait, do you want to say something?");
	if(status == 2)
		qm.PlayerToNpc("Don't you think the number's increasing by each stage?");
	if(status == 3)
		qm.sendNextPrev("Yes, you're right. Are you telling me 20 is not enough for you? Then shall we go with 100? No no no, now that we are TRAINING, how about we do something like 999, like someone from Sleepywood...?");
	if(status == 4)
		qm.PlayerToNpc("Well, on a second thought, 20 is fine.");
	if(status == 5)
		qm.sendAcceptDecline("No no no, you don't have to refuse the offer. I do understand your desire to return to your heroic form, I REALLY DO. Seriously, this is why you're the hero and I'm not.");
	if(status == 6){
		qm.forceStartQuest();
		qm.PlayerToNpc("#b(I pressed Accept, believing that if I listened any further, I might really have to go slay 999 of them...)#k");
   }if (status == 7)
		qm.sendNextPrev("Alright, now please go ahead and slay 20 #o0100133#s.");
	if(status == 8){
		qm.showWZEffect("Effect/OnUserEff.img/guideEffect/aranTutorial/tutorialArrow3", 1);
		qm.dispose();
	}
}

function end(mode, type, selection) {
    status++;
	if (mode != 1) {
	    if(type == 1 && mode == 0)
		    status -= 2;
		else{
		    qm.dispose();
			return;
		}
	}
	if(status == 0)
		qm.sendSimple("You were able to successfully defeat all the Murumurus. Were they enough for you to get some training done? I guess you'll need to take on about...300... of them? \r\n#b#L0#(Oh heck no...)#k#l");
	if(status == 1)
		qm.sendOk("...well that was wishful thinking. You look like your stamina has significantly improved already. I don't think you'll need to go through 300 of them now. \r\n\r\n#fUI/UIWindow.img/QuestIcon/4/0# \r\n#i2000022# #t2000022# 25 \r\n#i2000023# #t2000023# 25 \r\n\r\n#fUI/UIWindow.img/QuestIcon/8/0# 550 exp");
	if(status == 2){
		qm.forceCompleteQuest();
		qm.gainItem(2000022, 25);
		qm.gainItem(2000023, 25);
		qm.gainExp(550);
		qm.sendOk("Now I want you to go through a physical fitness test to see if you're ready for more. Talk to me when you're ready.");
		qm.dispose();
	}
}
	